package cn.tedu.yuncharging.common.ex;

import cn.tedu.yuncharging.common.web.ServiceCodeEnum;

public class ServiceException extends RuntimeException{
    private Integer serviceCode;

    public ServiceException(Integer serviceCode, String message){
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceException(ServiceCodeEnum serviceCodeEnum){
        super(serviceCodeEnum.getMessage());
        this.serviceCode = serviceCodeEnum.getCode();
    }
}
